/**
 * @author Tobias Boehm
 *
 * 28.05.2011
 */
package org.anddev.andengine.extension.tbsengine.message.client;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;

import org.anddev.andengine.extension.tbsengine.message.ICopyable;

/**
 * This client message should be used to request the open match list from a game
 * server.
 * 
 * @author Tobias Boehm
 *
 */
public class ClientMatchListRequestMessage extends AbsClientMessage implements
		ICopyable<ClientMatchListRequestMessage> {

	/* (non-Javadoc)
	 * @see org.anddev.andengine.extension.multiplayer.protocol.adt.message.IMessage#getFlag()
	 */
	@Override
	public short getFlag() {
		
		return FLAG_CLIENT_MATCH_LIST_REQUEST;
	}

	/* (non-Javadoc)
	 * @see org.anddev.andengine.extension.tbsengine.shared.ICopyable#copy()
	 */
	@Override
	public ClientMatchListRequestMessage copy() {
		
		final ClientMatchListRequestMessage copy = new ClientMatchListRequestMessage();
		
		copy.mPlayerID = this.mPlayerID;
		
		return copy;
	}

	/* (non-Javadoc)
	 * @see org.anddev.andengine.extension.tbsengine.multiplayer.client.messages.AbsClientMessage#onReadTransmissionClientData(java.io.DataInputStream)
	 */
	@Override
	protected void onReadTransmissionClientData(DataInputStream pDataInputStream)
			throws IOException {
		// TODO Auto-generated method stub

	}

	/* (non-Javadoc)
	 * @see org.anddev.andengine.extension.tbsengine.multiplayer.client.messages.AbsClientMessage#onWriteTransmissionClientData(java.io.DataOutputStream)
	 */
	@Override
	protected void onWriteTransmissionClientData(
			DataOutputStream pDataOutputStream) throws IOException {
		// TODO Auto-generated method stub

	}

}
